package g2.routemaster.gui.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.window.ApplicationWindow;

public class ExitAction extends Action {
   private ApplicationWindow window;
   public ExitAction(ApplicationWindow window) {
      setText("E&xit@Ctrl+Alt+X");
      setToolTipText("Exit Application");
      this.window = window;
   }
   
   public void run() {
      window.close();
   }
}
